<?php
/* @var $this PurchaseOrderHeaderController */
/* @var $model PurchaseOrderHeader */

$this->breadcrumbs=array(
	'Purchase Order Headers'=>array('index'),
	'List',
);

$this->menu=array(
	//array('label'=>'List PurchaseOrderHeader', 'url'=>array('index')),
	array('label'=>'Create Purchase Order', 'url'=>array("create&quo_no=")),
);

/*Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#purchase-order-header-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");*/
?>

<h1>List Purchase Order</h1>

<?php 

$myclass = get_class($this);
$myclass= strstr($myclass,'Controller',true);

$this->widget('application.extensions.tablesorter.Sorter', array(
    'data'=>$model,
    'columns'=>array(
		'purchase_no',
		'quo_no.quotation_no',
		'quo_no.customer',
		'datePO',
	),
	'filters'=>array(
        'filter',
		'filter',
		'filter',
        'filter-false',
    ),
	'view'=>$myclass,
	'page'=>'controller',
	'model'=>1,
));
?>
